<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <base th:href="${#request.getContextPath()}+'/static/'">
    <meta charset="UTF-8">
    <meta name="referrer" content="no-referrer">
    <title>文件上传测试</title>
</head>
<body>

<form method="post" action="/good/upload" enctype="multipart/form-data">
    <input type="file" name="file">
    <input type="submit" value="上传文件">
</form>

<img th:src="${'http://'+imgUrl}">
</body>
</html>